package com.hmdp;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.time.LocalDateTime;
import java.time.ZoneOffset;

@SpringBootTest
@Slf4j
public class CurrentTimeStamp {


    @Test
    public void CurrentTimeStamp(){
        LocalDateTime dateTime = LocalDateTime.of(1998, 10, 23, 12, 12, 12);
        long second = dateTime.toEpochSecond(ZoneOffset.UTC);
        log.info("{}", second);

    }
}
